package com.ruoyi.carbon.service.impl;

import java.util.List;

import com.ruoyi.carbon.domain.BidEnterpriseBidding;
import com.ruoyi.carbon.mapper.BidEnterpriseBiddingMapper;
import com.ruoyi.carbon.service.IBidEnterpriseBiddingService;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 企业投标Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
@Service
public class BidEnterpriseBiddingServiceImpl implements IBidEnterpriseBiddingService
{
    @Autowired
    private BidEnterpriseBiddingMapper bidEnterpriseBiddingMapper;

    /**
     * 查询企业投标
     * 
     * @param id 企业投标主键
     * @return 企业投标
     */
    @Override
    public BidEnterpriseBidding selectBidEnterpriseBiddingById(Long id)
    {
        return bidEnterpriseBiddingMapper.selectBidEnterpriseBiddingById(id);
    }

    /**
     * 查询企业投标列表
     * 
     * @param bidEnterpriseBidding 企业投标
     * @return 企业投标
     */
    @Override
    public List<BidEnterpriseBidding> selectBidEnterpriseBiddingList(BidEnterpriseBidding bidEnterpriseBidding)
    {
        return bidEnterpriseBiddingMapper.selectBidEnterpriseBiddingList(bidEnterpriseBidding);
    }

    /**
     * 新增企业投标
     * 
     * @param bidEnterpriseBidding 企业投标
     * @return 结果
     */
    @Override
    public int insertBidEnterpriseBidding(BidEnterpriseBidding bidEnterpriseBidding)
    {
        bidEnterpriseBidding.setCreateTime(DateUtils.getNowDate());
        return bidEnterpriseBiddingMapper.insertBidEnterpriseBidding(bidEnterpriseBidding);
    }

    /**
     * 修改企业投标
     * 
     * @param bidEnterpriseBidding 企业投标
     * @return 结果
     */
    @Override
    public int updateBidEnterpriseBidding(BidEnterpriseBidding bidEnterpriseBidding)
    {
        bidEnterpriseBidding.setUpdateTime(DateUtils.getNowDate());
        return bidEnterpriseBiddingMapper.updateBidEnterpriseBidding(bidEnterpriseBidding);
    }

    /**
     * 批量删除企业投标
     * 
     * @param ids 需要删除的企业投标主键
     * @return 结果
     */
    @Override
    public int deleteBidEnterpriseBiddingByIds(Long[] ids)
    {
        return bidEnterpriseBiddingMapper.deleteBidEnterpriseBiddingByIds(ids);
    }

    /**
     * 删除企业投标信息
     * 
     * @param id 企业投标主键
     * @return 结果
     */
    @Override
    public int deleteBidEnterpriseBiddingById(Long id)
    {
        return bidEnterpriseBiddingMapper.deleteBidEnterpriseBiddingById(id);
    }
}
